<h3 class="page-title">站点资源检查</h3>
<div class="table-custom">
    <div class="portlet">
        <div class="portlet-title">
            <div class="title-blank">
                	<span ng-repeat="media in stopMediaTypes" style="margin-right: 15px;">
                		<input type="radio" ng-model="mediaStopGrid.radioModel" value="{{media.value}}" name="mediaType" ng-checked="media.value == basicMediaType" style="position: static;margin: 0px;">
                		{{media.name}}
                	</span>
            </div>
            <a href="javascript:void(0);" class="title-operation search-expand">筛选</a>
            <!--<div class="title-search-box">-->
                <!--<input type="text" placeholder="请输入车牌号" class="search-field" ng-model="mediaStopGrid.query.plateNo"-->
                       <!--style="width: 180px;" maxlength="100">-->
                <!--<a class="fa fa-search" ng-click="mediaStopGrid.query();"></a>-->
            <!--</div>-->
        </div>
        <div class="portlet-search-body" style="display: none">
            <form class="form-inline" role="form">
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <input class="form-control" placeholder="站点名称" ng-model="mediaStopGrid.query.stopName">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <input class="form-control" placeholder="街道" ng-model="mediaStopGrid.query.roadName">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-bus"></i>
                            <select class="form-control" style="width: 200px;color: #b3b3b3;" ng-model="mediaStopGrid.query.county" ng-options="opt.value as opt.name for opt in options.AREA_COUNTY">
                                <option value="" >行政区划 </option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <select class="form-control" style="width: 200px;color: #b3b3b3;" ng-model="mediaStopGrid.query.mediaType"
                                    ng-options="opt.value as opt.name for opt in stopMediaTypes">
                                <option value="" >媒体类型 </option>
                            </select>
                        </div>
                    </div>
                </div>
                <button class="btn btn-primary" ng-click="dynamicQuery();"><i class="fa fa-search"></i> 搜索</button>
            </form>
        </div>
        <div class="portlet-body">
            <div ed-grid-dynamic="mediaStopGrid" ed-url="mediaCheck/dynamicStopData.do" ed-model="stop"></div>
        </div>
    </div>
</div>

<div ed-modal="checkStopResourceModal" data-options="title:'资源检查明细',icon:'fa-bus',
			static:true,width:'900px'">
    <div>
        <div class="portlet-title">
            <div style="margin-left: 5px;" ed-uploader data-options="multiple : true,text:' 文件上传'"
                 class="ng-uploader" ng-model="stopCheck.imgFiles"></div>
        </div>
        <div class="portlet-body">
            <span style="margin-left: 5px;" ng-show="(copyResCheck.imgFiles == undefined || copyResCheck.imgFiles.length == 0) && allTimesMap.elements.length == 0 "> 无数据!</span>
            <div style="height: 500px;overflow-y: auto">
                <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate
                      name="resourceValidateForm">
                    <div ng-show="copyResCheck.imgFiles != undefined && copyResCheck.imgFiles.length > 0">
                        <span style="margin-left: 5px;font-weight: bold">{{uploadTime}} (点击图片进行删除)</span><br/>
                        <a href="javascript:void(0)" style="margin-left: 5px;" title="点击删除" ng-click="deleteImg(resourceImg)"
                           ng-repeat="resourceImg in copyResCheck.imgFiles">
                            <img ng-src="{{nginxPath + resourceImg.path}}"  height="200px" width="220px"/>
                        </a>
                        <div class="row" style="margin-top: 5px;">
                            <label style="margin-left: -139px;" class="col-md-3 control-label"><span class="required">*</span>检查结果</label>
                            <div class="col-md-3">
                                <select class="form-control" style="width: 200px;" required name="result"
                                        ng-model="copyResCheck.result" ng-options="opt.value as opt.name for opt in options.resourceStatus | filter : {value:'!0'}">
                                </select>
                            </div>
                            <label style="margin-left: 63px;width: 69px;" class="col-md-2 control-label">备注</label>
                            <div class="col-md-2">
									<textarea style="width: 300px;" class="form-control" ng-model="copyResCheck.comment">

									</textarea>
                            </div>
                        </div>
                    </div>
                    <hr/>
                    <div ng-show="allTimesMap.elements.length > 0">
                        <span style="margin-left: 5px;font-weight: bold">历史数据</span><br/>
                        <div ng-repeat="time in allTimesMap.elements">
                            <span style="margin-left: 5px;font-weight: bold">{{time.value}}</span><br/>
                            <img style="margin-left: 5px;" ng-src="{{nginxPath + img.path}}" ng-repeat="img in allImgs"
                                 ng-if="img.createTime.substring(0,10) == time.value" height="200px" width="220px"/>
                            <hr/>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

</div>

<div ed-modal="adStopCheckModal" data-options="width:'950px',static:true,title: '广告检查明细',
    icon: 'glyphicon glyphicon-briefcase',defaultButton:false" >
    <div class="form" style="height: 602px">
        <div class="portlet-body" style="width: 100%">
            <table ed-grid="adStopCheckGrid" class="table table-striped table-bordered table-hover dataTable"
                   ed-url="mediaCheck/getAdStopCheckDatas.do" ed-model="adBusCheck" style="width: 100%">
                <thead>
                <tr>
                    <th ed-data="billNo" width="82px">单据号</th>
                    <th ed-data="stopName">站点名称</th>
                    <th ed-data="roadName">所在街道</th>
                    <th ed-data="publishTime">开始日期</th>
                    <th ed-data="publishOffTime">截止日期</th>
                    <th ed-data="content">内容</th>
                    <th ed-data="">样刊照</th>
                    <th ed-data="">完工照</th>
                    <th ed-data="makeBillDetailStatus | code : 'makeBillDetailStatus'">完工情况</th>
                    <th ed-data="checkStatus | code : 'checkStatus'">检查情况</th>
                    <th width="60px">操作</th>
                </tr>
                </thead>
            </table>
        </div>
    </div>
</div>

<div ed-tips="billNoTips" data-options="direction:'right',width:'300px'" >
    <div style="padding:24px 0px 7px 0;height: 66px;" >

        <span height="200px" width="200px" style="clear: both; display: block; margin:auto;text-align: center"/>{{showBillNo}}
    </div>
</div>

<div ed-modal="viewBillImgsModal" data-options="width:'750px',static:true,title: '样刊预览',
    icon: 'glyphicon glyphicon-briefcase',defaultButton:false" >
    <div class="form" style="height: 250px">
        <img style="margin: 5px 5px 0 5px;" ng-src="{{nginxPath + img.path}}" ng-repeat="img in billImgDatas" height="200px" width="220px" />
    </div>
</div>

<div ed-modal="viewMakeBillImgsModal" data-options="width:'750px',static:true,title: '完工照预览',
    icon: 'glyphicon glyphicon-briefcase',defaultButton:false" >
    <div class="form" style="height: 250px">
        <img style="margin: 5px 5px 0 5px;" ng-src="{{nginxPath + img.path}}" ng-repeat="img in makeBillImgDatas" height="200px" width="220px" />
    </div>
</div>

<div ed-modal="checkStopAdModal" data-options="width:'750px',static:true,title: '检查明细',
    icon: 'glyphicon glyphicon-briefcase'" >
    <div>
        <div class="portlet-title">
            <div style="margin-left: 5px;" ed-uploader data-options="multiple : true,text:' 文件上传'"
                 class="ng-uploader" ng-model="adCheck.files"></div>
        </div>
        <div class="portlet-body">
            <span style="margin-left: 5px;" ng-show="(copyAdCheck.files == undefined || copyAdCheck.files.length == 0) && hisAdCheckDatas.length == 0 "> 无数据!</span>
            <div style="height: 500px;overflow-y: auto">
                <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate
                      name="adValidateForm">
                    <div ng-show="copyAdCheck.files != undefined && copyAdCheck.files.length > 0">
                        <span style="margin-left: 5px;font-weight: bold">{{uploadTime}} (点击图片进行删除)</span><br/>
                        <a href="javascript:void(0)" style="margin-left: 5px;" title="点击删除" ng-click="adBusCheckGrid.deleteAdImg(adImg)"
                           ng-repeat="adImg in copyAdCheck.files">
                            <img ng-src="{{nginxPath + adImg.path}}"  height="200px" width="220px"/>
                        </a>
                        <div class="row" style="margin-top: 5px;">
                            <label style="margin-left: -103px;" class="col-md-3 control-label"><span class="required">*</span>检查结果</label>
                            <div class="col-md-3">
                                <select class="form-control" style="width: 200px;" required name="result"
                                        ng-model="copyAdCheck.result" ng-options="opt.value as opt.name for opt in options.checkStatus">
                                </select>
                            </div>
                            <label style="margin-left: 63px;width: 69px;" class="col-md-2 control-label">备注</label>
                            <div class="col-md-2">
									<textarea style="width: 300px;" class="form-control" ng-model="copyAdCheck.comment">
									</textarea>
                            </div>
                        </div>
                    </div>
                    <hr/>
                    <div ng-show="adTimesMap.elements.length > 0">
                        <span style="margin-left: 5px;font-weight: bold">历史数据</span><br/>
                        <div ng-repeat="time in adTimesMap.elements">
                            <span style="margin-left: 5px;font-weight: bold">{{time.value}}</span><br/>
                            <img style="margin-left: 5px;" ng-src="{{nginxPath + img.path}}" ng-repeat="img in hisAdCheckDatas"
                                 ng-if="img.createTime.substring(0,10) == time.value" height="200px" width="220px"/>
                            <hr/>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>